package com.example.hssmgs.Teacher;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

import androidx.appcompat.app.AppCompatActivity;

import com.example.hssmgs.MainActivity;
import com.example.hssmgs.R;

public class Teacher_login extends AppCompatActivity {
    private Button teacher_show_info;
    private Button look_left_msg;
    private Button back_Main_2;


    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.teacher_login);

        initView();

        teacher_show_info.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(Teacher_login.this, Teacher_look_stu.class);
                startActivity(intent);
            }
        });

        look_left_msg.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent();
                intent.setClass(Teacher_login.this, Teacher_look_msg.class);
                startActivity(intent);
            }
        });

        back_Main_2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
    }

    private void initView() {
        teacher_show_info = findViewById(R.id.teacher_show_info);
        look_left_msg = findViewById(R.id.look_left_msg);
        back_Main_2 = findViewById(R.id.back_Main_2);
    }
}